package com.recruit.dao;

import com.recruit.entity.CompanyUser;

import java.sql.SQLException;

public class CompanyUpdateDao extends BaseDao<CompanyUser>{

    //修改企业信息
    public int updateInfo(CompanyUser companyUser) throws SQLException {
        String sql = "update companyUser set username = ?,password=?,email=?,phone=?,companyName=? where id = ?";
        int index = this.update(sql, companyUser.getUsername(), companyUser.getPassword(), companyUser.getEmail(), companyUser.getPhone(), companyUser.getCompanyName());
        return index;
    }


}
